package com.hngs.dao;

import com.hngs.model.Category;
import com.hngs.model.CategoryQuery;
import com.hngs.model.Product;
import com.hngs.model.ProductQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductDao {

    public List<Product> select(ProductQuery query);
    //类目得添加
    public int insert(Product product);
    //类目得修改
    public int update(Product product);
    //类目得软删除
    public int updateStatus(@Param("id") Integer id, @Param("status") int status);

}

